import request from '@/utils/request'

// 查询交班管理列表
export function listHandRecord(query) {
  return request({
    url: '/payfee/HandRecord/list',
    method: 'get',
    params: query
  })
}

// 查询交班管理详细
export function getHandRecord(id) {
  return request({
    url: '/payfee/HandRecord/' + id,
    method: 'get'
  })
}

// 新增交班管理
export function addHandRecord(data) {
  return request({
    url: '/payfee/HandRecord',
    method: 'post',
    data: data
  })
}

// 修改交班管理
export function updateHandRecord(data) {
  return request({
    url: '/payfee/HandRecord',
    method: 'put',
    data: data
  })
}

// 删除交班管理
export function delHandRecord(id) {
  return request({
    url: '/payfee/HandRecord/' + id,
    method: 'delete'
  })
}

// 导出交班管理
export function exportHandRecord(query) {
  return request({
    url: '/payfee/HandRecord/export',
    method: 'get',
    params: query
  })
}



// 统计当日交班情况
export function onDayReceipt(query) {
  return request({
    url: '/payfee/HandRecord/onDayReceipt',
    method: 'get',
    params: query
  })
}


// 统计当日付款情况
export function onDayAdvanceReceipt(query) {
  return request({
    url: '/payfee/HandRecord/onDayAdvanceReceipt',
    method: 'get',
    params: query
  })
}


//审核
export function approve(data) {
  return request({
    url: '/payfee/HandRecord/approve',
    method: 'put',
    data: data
  })
}
